#include "SMPPOutbind.hpp"

using namespace smpp::pdu;

Outbind::Outbind(const Header &nHeader,
const CoctetString &nSystemId,const CoctetString &nPassword):
Header(nHeader),_SystemId(nSystemId),_Password(nPassword){}

Outbind::Outbind(const Outbind &nOutbind):Header(nOutbind),
_SystemId(nOutbind.getSystemId()),_Password(nOutbind.getPassword()){}

void Outbind::setSystemId(const CoctetString &nSystemId){
	_SystemId = nSystemId;
}

const CoctetString &Outbind::getSystemId() const{
	return _SystemId;
}

void Outbind::setPassword(const CoctetString &nPassword){
	_Password = nPassword;
}

const CoctetString &Outbind::getPassword() const{
	return _Password;
}

void Outbind::calcCommandLength(){
	_CommandLength = 16 + _SystemId.size() + _Password.size();
}
